package com.xiaoshuidi.cloud.module.report.service.bigdata;

import com.xiaoshuidi.cloud.module.report.controller.bigdata.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RentalDataService {

    /**
     * 门店列表
     *
     * @return {@link List}<{@link ApartmentVO}>
     */
    List<ApartmentVO> selectApartmentAll();


    /**
     * 公寓id 获取房态统计
     *
     * @param apartmentId 公寓id
     * @return {@link ApartmentHouseStateStatisticsVO}
     */
    ApartmentHouseStateStatisticsVO getHouseStateStatisticsByAptId(Long apartmentId);

    /**
     * 冷热水表分析
     *
     * @param apartmentId 公寓id
     * @return {@link ApartmentHouseStateStatisticsVO}
     */
    HouseDeviceAnalysisVO getHouseDeviceAnalysis(Long apartmentId);


    /**
     * 租金分布
     *
     * @param apartmentId 公寓id
     * @return {@link ContractRentDistributionVO}
     */
    ContractRentDistributionVO contractRentDistributionByAptId(Long apartmentId);

    /**
     * 付款流出占比
     *
     * @param apartmentId 公寓id
     * @return {@link ContractRentDistributionVO}
     */
    ContractRentDistributionVO paymentProportionByAptId(Long apartmentId);


    /**
     * 入住人年龄分布
     * @param apartmentId
     * @return
     */
    CustomerAgeIntervalStepVO customerAgeIntervalStepByAptId(Long apartmentId);


}
